#include  <stdio.h>
#include  <string.h>
int main()
{
    int age;
    char name[10];
    float weight;
    char s1[30]={"hajifeng 21 59.0"};
    sprintf(s1,"name:%s age:%d weight: %f\n","hajifeng",21,59.0);
    printf("%s",s1);
}